﻿@model IEnumerable<WeberTimeTracker.Models.Project>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script type="text/javascript">
    $(function () {
        $("tr:even").css("background-color", "#D0D0D0 ");
    });
</script>


<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        @*<th>
            Project ID
        </th>*@
        <th>
            Client ID
        </th>
        <th>
            Rate ID
        </th>
        <th>
            Project Name
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        @*<td>
            @Html.DisplayFor(modelItem => item.Project_ID)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Client_ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Rate_ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Project_Name)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id = item.Project_ID  }) |
            @Html.ActionLink("Details", "Details", new { id = item.Project_ID }) |
            @*@Html.ActionLink("Delete", "Delete", new { id = item.Project_ID }) |*@
            @Html.ActionLink("Disable", "Disable", new { id = item.Project_ID })
        </td>
    </tr>
}

</table>
